package com.liyong.pullorder.sdk.exception;

/**
 * @author 葡萄味的萝卜
 * @date 2025/10/21 13:11
 * 认证异常
 * 核心作用：标识认证相关的错误
 * 触发场景：Token过期、API Key无效、权限不足
 * 处理策略：不可重试，需要人工干预更新认证信息
 */
public class AuthException extends PullOrderException{
    public AuthException(String message) {
        super(message, "AUTHENTICATION_FAILED", "UNKNOWN");
    }

    public AuthException(String message, String platformCode) {
        super(message, "AUTHENTICATION_FAILED", platformCode);
    }

    public AuthException(String message, Throwable cause, String platformCode) {
        super(message, cause, "AUTHENTICATION_FAILED", platformCode);
    }
}
